package com.csf.controller;

import com.csf.annotation.Autowired;
import com.csf.annotation.Component;
import com.csf.entity.User;
import com.csf.service.UserService;

/**
 * TODO ADD DESCRIPTION
 * Date: 2018/8/28
 * Time: 16:51
 *
 * @author chenshf
 */
@Component
public class UserController {

    @Autowired
    private UserService userService;

    /**
     * 通过注解注入
     * @return
     */
    public User getUser(){
        return userService.getUserInfo();
    }

}
